package com.xju.travelmanager.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName xj_path
 */
@TableName(value ="xj_path")
@Data
public class Path implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private Integer days;

    /**
     * 
     */
    private Integer number;

    /**
     * 
     */
    private Integer scenicId1;

    /**
     * 
     */
    private Integer scenicId2;

    /**
     * 
     */
    private Integer scenicId3;

    /**
     * 
     */
    private Integer scenicId4;

    /**
     * 
     */
    private Integer scenicId5;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Path other = (Path) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDays() == null ? other.getDays() == null : this.getDays().equals(other.getDays()))
            && (this.getNumber() == null ? other.getNumber() == null : this.getNumber().equals(other.getNumber()))
            && (this.getScenicId1() == null ? other.getScenicId1() == null : this.getScenicId1().equals(other.getScenicId1()))
            && (this.getScenicId2() == null ? other.getScenicId2() == null : this.getScenicId2().equals(other.getScenicId2()))
            && (this.getScenicId3() == null ? other.getScenicId3() == null : this.getScenicId3().equals(other.getScenicId3()))
            && (this.getScenicId4() == null ? other.getScenicId4() == null : this.getScenicId4().equals(other.getScenicId4()))
            && (this.getScenicId5() == null ? other.getScenicId5() == null : this.getScenicId5().equals(other.getScenicId5()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDays() == null) ? 0 : getDays().hashCode());
        result = prime * result + ((getNumber() == null) ? 0 : getNumber().hashCode());
        result = prime * result + ((getScenicId1() == null) ? 0 : getScenicId1().hashCode());
        result = prime * result + ((getScenicId2() == null) ? 0 : getScenicId2().hashCode());
        result = prime * result + ((getScenicId3() == null) ? 0 : getScenicId3().hashCode());
        result = prime * result + ((getScenicId4() == null) ? 0 : getScenicId4().hashCode());
        result = prime * result + ((getScenicId5() == null) ? 0 : getScenicId5().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", days=").append(days);
        sb.append(", number=").append(number);
        sb.append(", scenicId1=").append(scenicId1);
        sb.append(", scenicId2=").append(scenicId2);
        sb.append(", scenicId3=").append(scenicId3);
        sb.append(", scenicId4=").append(scenicId4);
        sb.append(", scenicId5=").append(scenicId5);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}